package com.joysw.ui;

import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.TextView;
import butterknife.ButterKnife;
import butterknife.InjectView;

import com.joysw.R;
import com.joysw.view.TitleBarView;
/**
 * 
* @Title: MainActivity.java 
* @Package com.joysw.ui 
* @Description: 收入页面
* @author LIMINGYAN  
* @date 2015年3月28日 上午7:39:14 
* @version V1.0
 */
public class MyIncomeActivity extends BaseActivity implements OnClickListener{
	private static final String TAG = "MyIncomeActivity";
	@InjectView(R.id.my_income_title_bar)
	TitleBarView title_bar_view;
	@InjectView(R.id.three_months_income_detail)
	TextView three_months_income_detail;
	@InjectView(R.id.all_income_detail)
	TextView all_income_detail;
	@InjectView(R.id.cash)
	Button get_cash_btn;
	 @Override
	    protected void onCreate(Bundle arg0) {
	    	// TODO Auto-generated method stub
	    	super.onCreate(arg0);
	    	setContentView(R.layout.activity_my_income);
	    	ButterKnife.inject(this);
	    	
	    	initView();
	    }
	private void initView() {
		title_bar_view.setTitleText(R.string.my_income_title);
		title_bar_view.setBtnLeft(R.drawable.back, R.string.back);
		title_bar_view.setBtnLeftOnclickListener(new OnClickListener() {

			@Override
			public void onClick(View arg0) {
				finish();
			}
		});
		three_months_income_detail.setOnClickListener(this);
		all_income_detail.setOnClickListener(this);
	}
	@Override
	public void onClick(View arg0) {
		switch (arg0.getId()) {
		case R.id.three_months_income_detail:
			three_months_income_detail.setTextColor(getResources().getColor(R.color.common_title));
			all_income_detail.setTextColor(getResources().getColor(R.color.black));
		break;
		case R.id.all_income_detail:
			three_months_income_detail.setTextColor(getResources().getColor(R.color.black));
			all_income_detail.setTextColor(getResources().getColor(R.color.common_title));
		break;
		case R.id.cash:
			
		break;
		}
		
	}
}
